package com.example.databasepj.dto;

public class DishMenuData {
    //{
    //      "dish_ID": 1,
    //      "dish_name": "农家小炒肉",
    //      "price": 38.0,
    //      "starNum": 12, // 收藏量
    //      "salesVolume_online": 1，
    //      "salesVolume_offline": 2
    //    },
    private int dish_ID;
    private String dish_name;
    private float price;
    private int starNum;
    // 0: 排队点餐, 1: 在线点餐
    private int salesVolume_online;
    private int salesVolume_offline;

    public DishMenuData(int dish_ID, String dish_name, float price, int starNum, int salesVolume_online, int salesVolume_offline) {
        this.dish_ID = dish_ID;
        this.dish_name = dish_name;
        this.price = price;
        this.starNum = starNum;
        this.salesVolume_online = salesVolume_online;
        this.salesVolume_offline = salesVolume_offline;
    }

    public DishMenuData(int dish_ID, String dish_name, float price) {
        this.dish_ID = dish_ID;
        this.dish_name = dish_name;
        this.price = price;
    }

    public int getStarNum() {
        return starNum;
    }

    public void setStarNum(int starNum) {
        this.starNum = starNum;
    }

    public int getSalesVolume_online() {
        return salesVolume_online;
    }

    public void setSalesVolume_online(int salesVolume_online) {
        this.salesVolume_online = salesVolume_online;
    }

    public int getSalesVolume_offline() {
        return salesVolume_offline;
    }

    public void setSalesVolume_offline(int salesVolume_offline) {
        this.salesVolume_offline = salesVolume_offline;
    }

    public int getDish_ID() {
        return dish_ID;
    }

    public void setDish_ID(int dish_ID) {
        this.dish_ID = dish_ID;
    }

    public String getDish_name() {
        return dish_name;
    }

    public void setDish_name(String dish_name) {
        this.dish_name = dish_name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
